package design.patterns.factorymode.factoryabstract.computer1;

/**
 * desc     :
 * dateTime : 2020/7/21 9:56
 *
 * @author cww
 */

public class MainTest {
    public static void main(String[] args) {
        MacComputer macComputer = (MacComputer) AbstractComputerFactory.getProductor("mac");
        PcComputer pcComputer = (PcComputer) AbstractComputerFactory.getProductor("pc");
        Cpu cpu = macComputer.getCpu();
        Ram ram = macComputer.getRam();

    }
}
